'use strict';

module.exports = app => {
    class CommentListController extends app.Controller {
        //获取评论分页（资讯）
        async commentlist() {
            const params = this.ctx.request.query;
            const data = await this.service.commentlist.getCommentList(params);
            //获取根据编号获取回评
            this.success(data);
        };


        //获取评论分页（帖子）
        async postcommentlist() {
            const params = this.ctx.request.query;
            const data = await this.service.commentlist.getPostCommentList(params);
            //获取根据编号获取回评
            this.success(data);
        };
    }
    return CommentListController;
};

